﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using PublishData.DAL;

namespace PublishData
{
    static class Program
    {
        #region Thuộc tính
        private static FormMain m_FormMain = null;
        public static FormMain FormMain
        {
            get
            {
                if (m_FormMain == null)
                    m_FormMain = new FormMain();
                return m_FormMain;
            }
        }
        #endregion

        #region Thuộc tính ứng dụng
        //private static User m_NguoiSuDung;
        public static User NguoiSuDung
        {
            get;// { return m_NguoiSuDung; }
            set;
            //{
            //    m_NguoiSuDung = value;
            //    Program.FormMain.UpdateNguoiSuDung();
            //}
        }

        #endregion


        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormMain());
        }
    }
}
